//登录
import request from '@/utils/request'

export default {
    //登录是否成功
    loginIn(username, password){
        return request({
            method: 'post',
            url: process.env.VUE_APP_BASE_API + '/user/login',
            data: {
                username,
                password
            }
        })
    },
    //成功获取用户信息
    getuserIn(tok){
        return request({
            method: 'get',
            url: process.env.VUE_APP_BASE_API + '/user/info/' + tok,
            data: tok
        })
    }
}

